/**
 * Project oo_thread
 */


#include "../include/MyTask.h"
#include <ctime>
#include <stdlib.h>
#include <iostream>
#include <unistd.h>
using std::endl;
using std::cout;

/**
 * MyTask implementation
 */
MyTask::MyTask(const string msg, TcpConnectionPtr conn)
:_msg(msg)
,_conn(conn)
{

}

/**
 * @return void
 */
void MyTask::process() {
    // cout << "MyTask.cpp 28 process(),msg = " << _msg << endl;

    //handle msg
    sleep(1);

//    _conn->sendtoLoop(_msg);

}
